/******************************************************************************
*	uart.h	Header file of uart Library
*
*	coypright (C) 2009 Ding Lixing
*
******************************************************************************/
#include <stdarg.h>

#ifndef __UART_INC__
#define __UART_INC__

#ifdef __cplusplus
extern "C" {
#endif

void uartInit(unsigned int sysClock);
int  uartSendByte(unsigned char ch);
int  uartRecvByte(unsigned char *ch);
void uartPrintStr(char *str);
void uartPrintHex(unsigned int x);
void uartPrintNL(void);
int uartPrintf(const char *fmt, ...);

#ifdef __cplusplus
}
#endif

#endif /* __UART_INC__ */

